<!DOCTYPE html>
<html>
<head>
  <title>Navmine</title>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
<body style="">

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <%= link_to "NavClus", root_path, :class => "navbar-brand" %>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><%= link_to "Home", root_path %></li>
            <% if current_user.nil? %>
            <li><%= link_to "Price", pricing_path %></li>
            <% else %>
            <li><%= link_to "Project", projects_path %></li>
            
            <% end %>
            <li><%= link_to "Install", install_path %></li>
          </ul>
          
           <ul class="nav navbar-nav pull-right">
           	<% unless current_user.nil? %>
           		<li><%= link_to current_user.name, projects_path %></li>
           		<li>
				  <%= link_to('Log Out', destroy_user_session_path, :method => :delete) %>        
				 </li>
			<% else %>
				<li>
				  <%= link_to('Sign Up', new_user_registration_path) %>        
				</li>
				<li>
				  <%= link_to('Log In', new_user_session_path) %>        
				 </li>
           	<% end %>
           </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container">
		
		
		<% flash.each do |key, value| %>
		    <%= content_tag(:div, value, class: "alert alert-info") %>
		<% end %>
		  
  
        <%= yield %>
      
    </div>


	

</body>
</html>

